#include <iostream>

int main()
{
    // forrange是C++11新增的循环方式
    for (int i : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
    {
        std::cout << i << std::endl;
    }

    for (auto &&i : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10})
    {
        std::cout << i << std::endl;
    }

    return 0;
}
